#include<stdio.h>
int main()
{
	int arr[10], * p1, * p2, x;


	for (p1 = arr; p1 < arr + (sizeof arr) / sizeof(int); p1++)
		scanf_s("%d", p1);


	for (p1 = arr, p2 = arr + (sizeof arr) / sizeof(int) - 1; p1 < p2; p1++, p2--)
	{
		x = *p1;
		*p1 = *p2;
		*p2 = x;
	}
	for (p1 = arr; p1 < arr + (sizeof(arr)) / sizeof(int); p1++)
		printf("%5d", *p1);
	return 0;
}